#pragma once

#include "stdafx.h"
#include <cv.h>
#include <cxcore.h>
#include <highgui.h>
#include <stdio.h>
#include <math.h>
#include <fstream>

#include "BackgroundSegmentation.h"
#include "ResourceLibrary.h"

using namespace cv;
class BgSegmenter;

class OpticalFlow
{
public:

	ResourceLibrary* resources;

	vector<CvPoint> goodStart;
	vector<CvPoint> goodEnd;
	vector<CvPoint> badStart;
	vector<CvPoint> badEnd;

	OpticalFlow(ResourceLibrary* rl);							//Constructor
	~OpticalFlow(void);

	int OpticalFlow::calcOpticalFlow(BgSegmenter* bgs);
	
};